package com.cloud.drore.eboss.supplier.service;

import com.cloud.drore.eboos.common.base.PagePo;
import com.cloud.drore.eboos.common.base.ResultMessage;
import com.cloud.drore.eboos.common.entity.dealer.OrderDetailVo;
import com.cloud.drore.eboos.common.entity.dealer.OrderInitVo;
import com.cloud.drore.eboos.common.entity.dealer.OrderQueryPo;
import com.cloud.drore.eboss.operation.entity.OTASendOrderEticketRequest;
import com.cloud.drore.eboss.operation.entity.OTASendOrderEticketResponse;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: <br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/1/30 10:06 <br>
 * @Author: <a href="575842778@qq.com">郑永涛</a>
 */
@FeignClient("eboss-dealer")
public interface ITicketOrderFeign {

    //供应商模块门票条件查询
    @PostMapping(value = "travelTicketOrder/supplierQueryTickets")
    public ResultMessage supplierQueryTickets(@RequestBody PagePo<OrderQueryPo> pagePo);

    //运营商模块门票条件查询
    @PostMapping(value = "travelTicketOrder/operationQueryTickets")
    public ResultMessage operationQueryTickets(@RequestBody PagePo<OrderQueryPo> pagePo);

    //通过id获取门票订单详情
    @GetMapping(value = "travelTicketOrder/ticketOrderDetail/{id}")
    public ResultMessage<OrderDetailVo> getTicketOrderDetail(@PathVariable("id") Long id);

    //运营商门票订单页面加载初始化数据
    @GetMapping(value = "travelTicketOrder/operationInit")
    public ResultMessage<OrderInitVo> operationInit();

    //供应商门票订单页面加载初始化数据
    @GetMapping(value = "travelTicketOrder/supplierInit")
    public ResultMessage<OrderInitVo> supplierInit();

    @PostMapping(value = "travelSendOrderEticket/sendOrderEticket")
    public ResultMessage<OTASendOrderEticketResponse>  sendOrderEticket(@RequestBody OTASendOrderEticketRequest otaSendOrderEticketRequest);

}